import * as type from './mutation-types'
import Cookies from 'js-cookie'
export default{
	[type.SET_USER_ID](state,userId){
		state.userId = userId;
		Cookies.set('userId', userId);
	},
	[type.SET_USER_NAME](state,userName){
		state.userName = userName;
	},
	[type.SET_AVATAR](state,avatar){
		state.avatar = avatar;
	},
	[type.SET_BANNER](state,banner){
		state.banner = banner;
	}
}
